<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>Form Wizard - Ace Admin</title>

		<meta name="description" content="and Validation" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!--basic styles-->

		<link href="Public/Admin/css/bootstrap.min.css" rel="stylesheet" />
		<link href="Public/Admin/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="Public/Admin/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="Public/Admin/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!--page specific plugin styles-->

		<link rel="stylesheet" href="Public/Admin/css/select2.css" />

		<!--ace styles-->

		<link rel="stylesheet" href="Public/Admin/css/ace.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="Public/Admin/css/ace-ie.min.css" />
		<![endif]-->

		<!--inline styles related to this page-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>

	<body>
		
				<div class="page-content">
					<div class="page-header position-relative">
						<h1>
							分类管理
							<small>
								<i class="icon-double-angle-right"></i>
								分类列表
							</small>
						</h1>
					</div><!--/.page-header-->
<div class="row-fluid">
						<div class="span12">
							<!--PAGE CONTENT BEGINS-->

							<div class="row-fluid">
								<div class="span12">
									<table id="sample-table-1" class="table table-striped table-bordered table-hover">
										<thead>
											<tr>
												<th class="center" width="50">
													分类ID
												</th>
												<th>分类名称</th>
												<th class="hidden-480" width="100">排序</th>

												<th class="hidden-phone" width="100">
													<i class="icon-time bigger-110 hidden-phone"></i>
													添加时间
												</th>
												<th class="hidden-480" width="150">所属类型</th>

												<th width="150">分类操作</th>
											</tr>
										</thead>

										<tbody>
											{{foreach from="$cateData" value="$v"}}
											<tr class="">
												<td class="center">
													{{$v['cid']}}
												</td>

												<td>
													<a href="{{U('Category/showSon',array('cid'=>$v['cid']))}}">{{$v['_name']}}</a>
												</td>
												<td class="hidden-480">{{$v['csort']}}</td>
												<td class="hidden-phone">{{date('Y-m-d',$v['addtime'])}}</td>

												<td class="hidden-480">
													{{if value="$v['pid']"}}
														{{foreach from="$typeData" value="$t"}}
															{{if value="$t['tid'] eq $v['type_tid']"}}{{$t['tname']}}{{endif}}
														{{endforeach}}
													{{else}}
														顶级分类
													{{endif}}
												</td>

												<td>
													<div class="btn-group">
														<a href="{{U('Category/addson',array('cid'=>$v['cid']))}}" class="btn btn-mini btn-success">
															<i class="icon-ok bigger-120"></i>添加子类
														</a>

														<a href="{{U('Category/edit',array('cid'=>$v['cid']))}}" class="btn btn-mini btn-info">
															<i class="icon-edit bigger-120"></i>编辑
														</a>

														<a href="javascript: if(confirm('您确定删除吗？')) location.href='{{U('Category/del',array('cid'=>$v['cid']))}}'" class="btn btn-mini btn-danger">
															<i class="icon-trash bigger-120"></i>删除
														</a>
													</div>

												</td>
											</tr>
											{{endforeach}}
											
										</tbody>
									</table>
								</div>
							</div>
				</div><!--/.page-content-->

			</div><!--/.main-content-->
		</div><!--/.main-container-->

	</body>
</html>

















